import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
import { Button } from '@/components/ui/button';
import { Home, ArrowLeft } from 'lucide-react';

export function NotFoundPage() {
  const { t } = useTranslation();

  return (
    <div className='min-h-[50vh] flex items-center justify-center'>
      <div className='text-center space-y-6'>
        <div className='space-y-2'>
          <h1 className='text-6xl font-bold text-muted-foreground'>404</h1>
          <h2 className='text-2xl font-bold'>{t('errors.404.title')}</h2>
          <p className='text-muted-foreground max-w-md mx-auto'>
            {t('errors.404.description')}
          </p>
        </div>
        <div className='space-x-4'>
          <Button asChild>
            <Link to='/'>
              <Home className='mr-2 h-4 w-4' />
              {t('errors.404.backHome')}
            </Link>
          </Button>
          <Button variant='outline' onClick={() => window.history.back()}>
            <ArrowLeft className='mr-2 h-4 w-4' />
            {t('common.back')}
          </Button>
        </div>
      </div>
    </div>
  );
}
